# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=HTML-Tagset
pkgname=perl-${_realname}
pkgver=3.20
pkgrel=2
pkgdesc="Data tables useful in parsing HTML"
arch=('any')
license=('PerlArtistic')
url="https://metacpan.org/${_realname}/"
groups=('perl-modules')
depends=('perl>=5.10.0')
replaces=('HTML-Tagset')
provides=('HTML-Tagset')
options=(!emptydirs)
source=(https://www.cpan.org/authors/id/P/PE/PETDANCE/${_realname}-${pkgver}.tar.gz)
sha256sums=('adb17dac9e36cd011f5243881c9739417fd102fce760f8de4e9be4c7131108e2')

build() {
  cd ${srcdir}/${_realname}-${pkgver}
  # install module in vendor directories.
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd ${srcdir}/${_realname}-${pkgver}
  make test
}

package() {
  cd ${srcdir}/${_realname}-${pkgver}
  make install DESTDIR=${pkgdir}
}
